import { req } from '../utils/req.js';

export default {
  //商店列表
  getList(param) {
    return req.post("/api8.Shop/getList", param)
  },
  //商店首页展示
  getIndex(param) {
    return req.post("/Api8.index/shopDashboard", param)
  },
  //收藏店铺列表
  getCollectList(param) {
    return req.post("/api8.shop/collectList", param)
  },
  //商店详情
  getDetail(param) {
    return req.post("/api8.shop/getShopByUid", param)
  },
  //商店编辑
  add(param) {
    return req.post("/Api7.shop/saveShop", param)
  },
  //设施
  getFacility(param) {
    return req.post("/Api7.shop/facilities", param)
  },
  //获取套餐
  getMeal(param) {
    return req.post("Api7.shop_category/getCategoryByid", param)
  },
  //收藏取消收藏
  collect(param) {
    return req.post("/api8.shop/collect", param)
  },
  //添加优惠券
  addCoupon(param) {
    return req.post("/Api7.coupon/create", param)
  },
  //添加优惠券
  delCoupon(param) {
    return req.post("api7.coupon/deleteCoupon", param)
  },
  //添加商品
  addGood(param) {
    return req.post("/api8.shop/addGoods", param)
  },
  //删除商品
  delGood(param) {
    return req.post("/api8.shop/deleteGoods", param)
  },
  //删除商品
  getGoodDetail(param) {
    return req.post("/api8.shop/goodsInfo", param)
  },
  //获取优惠券列表
  getCouponList(param) {
    return req.post("/api7.coupon/getList", param)
  },
   //获取商品列表
  getGoodList(param) {
    return req.post("/api8.shop/goodsList", param)
  }
  
}